package com.yueqian.epidemic;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

public class ApplicationInitialzer extends AbstractAnnotationConfigDispatcherServletInitializer {
    /**
     * 配置spring框架相关的配置类
     *
     * @return
     */
    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class[]{SpringConfig.class};
    }

    /**
     * 配置springmvc框架相关的配置类
     *
     * @return
     */
    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class[]{SpringMVCConfig.class};
    }

    /**
     * DispatcherServlet的映射路径(返回映射到DispatcherServlet的请求路径)
     *
     * @return
     */
    @Override
    protected String[] getServletMappings() {
        //TODO 标记 痛苦！
        return new String[]{"/"};
    }
}
